<?php
namespace app\wendasns\model;

use think\Model;

class Navig extends Model
{
	//protected $name = 'navig';
	
	
	public function scopeGetmenu($query,$type='main',$parent=0)
    {
        $query->where([
        	['type','=',$type],
        	['parentid','=',$parent],
        	['isshow','=',1],
        ])->order('orderid','asc')->field('id,name,url,sign,style,target');
    }
}